#include "lib.h"
#include "DiceGame.h"
#include "crapconn.h"
#include "crapgame.h"

#include "SicBoGame.h"

DiceGame * DiceGame::CreateGame(CrapsConnection *pConnection)
{
    DiceGame *pRetVal = NULL;

    switch(pConnection->getCurrentGameId())
    {
        case CRAPS_GAME_ID:
        {
            pRetVal = new CrapsGame(pConnection);

            break;
        }

        case SICBO_GAME_ID:
        {
            pRetVal = new SicBoGame(pConnection);

            break;
        }

    }

    return pRetVal;
}